set(CMAKE_CXX_COMPILER C:/ProgramData/chocolatey/bin/g++.exe)

cmake_minimum_required(VERSION 2.7)
project(OpenGL)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "-Wall -pedantic -Wno-unused-result -Wno-deprecated-declarations")
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
find_package(GLUT REQUIRED)
include_directories(${GLUT_INCLUDE_DIR})

add_executable(OpenGL main.cpp objLoader.cpp car.cpp ground.cpp input.cpp utils.cpp)
target_link_libraries(OpenGL ${GLUT_LIBRARY} ${OPENGL_LIBRARY} m)
